package com.baichen;

public class Main {

    public static void main(String[] args) {
        SqlSessionFactory sqlSessionFactory = new SqlSessionFactory();
        UserMapper userMapper = sqlSessionFactory.getMapper(UserMapper.class);
        System.out.println(userMapper.selectById(1));
        System.out.println(userMapper.selectByName("baichen"));
        System.out.println(userMapper.selectByNameAndAge("baichen", 18));
    }
}
